﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ETALON
{
    public partial class FormGROUPselect : Form
    {
       
        

        public FormGROUPselect()
        {
            InitializeComponent();
        }
        public FormGROUPselect(string[] arr_str_choice, string sTXTcaptionGROUP): this()
        {
            this.Text = sTXTcaptionGROUP;
            InitializeComponentMy(arr_str_choice);
        }
        public void InitializeComponentMy(string[] arr_str_choice)
        {
            setTEXT_choice_setVisible(arr_str_choice);
        }
        
        public void setTEXT_choice_setVisible(string[] arr_str_choice)
        {

            for (int j = 0; j < arr_str_choice.Length ; j++)
            {
                this.Controls[j].Text = arr_str_choice[j];
            }

            foreach (Control c in this.Controls)
            {
                if (c.Text == "-") c.Visible = false;
            }

        }

        public string SELECT
        { 
          get 
          {
              string s="-";
              foreach (RadioButton rb in this.Controls)
              {
                  if (rb.Checked) s = rb.Text;
              }
              return s;
          }
        }

        private void radioButton3_Click(object sender, EventArgs e)
        {
           // this.Close();
        }

        private void radioButton2_Click(object sender, EventArgs e)
        {

        }

        private void radioButton1_Click(object sender, EventArgs e)
        {

        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
           // this.Close();
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
           // this.Close();
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
           // this.Close();
        }

        

    }
}
